package com.xinhuajs.articlemg.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinhuajs.articlemg.dao.IGroupDAO;
import com.xinhuajs.articlemg.pojo.Group;
import com.xinhuajs.articlemg.service.IGroupService;
@Service("groupService")
public class GroupServiceImpl implements IGroupService {
	@Autowired
	private IGroupDAO groupDao;
	@Override
	public void save(Group group){
		groupDao.save(group);
	}
	@Override
	public Group findBygroupid(int groupid){
		return groupDao.findBygroupid(groupid);
	}
	@Override
	public List<Group> findAll(){
		return groupDao.findAll();
	}
	@Override
	public boolean deleteBygroupid(int groupid){
		return groupDao.deleteBygroupid(groupid);
	}

	@Override
	public void update(Group group) {
	
		groupDao.update(group);
	}
}
